package firehwak.thoth.client.service;

import android.content.BroadcastReceiver;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;

public class Receiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		if (intent.getAction().equals("android.intent.action.BOOT_COMPLETED")) {
			ComponentName comp = new ComponentName(context.getPackageName(), ThothService.class.getName());
			ComponentName service = context.startService(new Intent().setComponent(comp));
		}
	}
}
